package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/6/19 14:10
 */

@Data
public class LoginVo implements Serializable {
    @NotBlank(message = "登录账号不能为空")
    @Size(min = 3, message = "登录账号长度不能小于3位")
    private String userName;

    @NotBlank(message = "登录密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$", message = "登录密码最小是6位，并且包含字母和数字")
    private String userPass;
}
